package com.feng.zhihao.apigeteway.gateway.bean.impl.PARAMS_POSITION.RES;

import org.springframework.stereotype.Component;

import com.feng.zhihao.apigeteway.gateway.ReqContext;
import com.feng.zhihao.apigeteway.gateway.bean.RES_PARAMS_POSITION;

@Component("RES_PARAMS_POSITION_HTTP_HEAD")
public class RES_PARAMS_POSITION_HTTP_HEAD implements RES_PARAMS_POSITION{

	@Override
	public void outPutRes(ReqContext reqContext) {
		reqContext.getResParams().keySet().stream()
		.forEach((k) -> {
			String v = reqContext.getResParams().getString(k);
			reqContext.getResponse().setHeader(k, v);
		});
	}

}
